package com.dxyusn.dubbo.study;

import org.apache.dubbo.common.extension.ExtensionLoader;
import org.apache.dubbo.rpc.Protocol;

/**
 * @author dongxiyan
 * @date 2020/2/24 22:56
 */
public class Main {

    public static void main(String[] args) {
        Protocol protocol= ExtensionLoader.getExtensionLoader(Protocol.class).getExtension("myProtocol");
        System.out.print(protocol.getDefaultPort());
        Compiler compiler=ExtensionLoader.getExtensionLoader(Compiler.class).getAdaptiveExtension();
        System.out.println(compiler.getClass());
    }
}
